package com.monster.dict.domain.common;

import com.monster.exception.ExceptionEnum;
import lombok.Getter;

/**
 * 校验自定义一场
 * @author kuang
 */
public enum DictExceptionEnum implements ExceptionEnum {
    /**
     * 异常定义
     */
    UNIQUE ("UNIQUE", "编码不能重复!"),
    ;
    @Getter
    private String code;
    @Getter
    private String msg;

    DictExceptionEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
